package org.nobody.mallb2c.mallorder.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.nobody.common.utils.PageUtils;
import org.nobody.common.utils.Query;

import org.nobody.mallb2c.mallorder.dao.OrderItemDao;
import org.nobody.mallb2c.mallorder.entity.OrderItemEntity;
import org.nobody.mallb2c.mallorder.service.OrderItemService;

@Service("orderItemService")
public class OrderItemServiceImpl extends ServiceImpl<OrderItemDao, OrderItemEntity> implements OrderItemService {

  @Override
  public PageUtils queryPage(Map<String, Object> params) {
    IPage<OrderItemEntity> page = this.page(
      new Query<OrderItemEntity>().getPage(params),
      new QueryWrapper<OrderItemEntity>()
    );

    return new PageUtils(page);
  }
}
